import * as runtime from './runtime'
import * as preferences from './preferences'
import { browserApis } from './browser'
import * as cli from './cli'
import * as monitor from './monitor'
import * as pubsub from './pubsub'
import * as system from './system'
import { connectionApis } from './connection';

if (!window['go']){
  window['runtime'] = runtime
  window['go'] = {
    services: {
      browserService: browserApis,
      cliService: cli,
      connectionService: connectionApis,
      monitorService: monitor,
      preferencesService: preferences,
      pubsubService: pubsub,
      systemService: system
    }
  }
}
export const Api = {}
